//
//  标定操作界面
//
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

Item {
    id: manualCalibrationBack
    width: 1800
    height: 670


    // Rectangle{      // 整体背景
    //     anchors.fill: parent
    //     color: "gold"

    //     Text{
    //         anchors.centerIn: parent
    //         font.pixelSize: 50
    //         font.bold: true
    //         text: qsTr("标定界面")
    //     }
    // }

    A_NumberKeyboard{
        id: manualCalibrationKeyboard
        isDirectOverwrite: false
    }


    Column{
        anchors.horizontalCenter: parent.horizontalCenter
        Item{
            width: 1700
            height: 120

            Rectangle{
                width: 1600
                height: 2
                anchors.top: parent.top
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }

            Rectangle{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 100
                radius: 30
                height: 100
                color: "gray"
                Rectangle{
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                    width: 30
                    height: parent.height
                    color: "white"
                }
                Text{
                    anchors.right: parent.right
                    anchors.rightMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    font.pixelSize: 20
                    font.bold: true
                    color: "white"
                    text: qsTr("上料")
                }
            }

            Row{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 130
                spacing: 30

                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }

                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("X标定")
                }
                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Y标定")
                }
                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Z标定")
                }
            }


            Rectangle{
                width: 1600
                height: 1
                anchors.bottom: parent.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }
        }
        Item{
            width: 1700
            height: 120

            Rectangle{
                width: 1600
                height: 1
                anchors.top: parent.top
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }

            Rectangle{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 100
                radius: 30
                height: 100
                color: "gray"

                Rectangle{
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                    width: 30
                    height: parent.height
                    color: "white"
                }

                Text{
                    anchors.right: parent.right
                    anchors.rightMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    font.pixelSize: 20
                    font.bold: true
                    color: "white"
                    text: qsTr("钻铣")
                }

            }


            Row{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 130
                spacing: 30

                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("X1标定")
                }
                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Y1标定")
                }
                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Z1标定")
                }
            }



            Rectangle{
                width: 1600
                height: 1
                anchors.bottom: parent.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }
        }
        Item{
            width: 1700
            height: 120

            Rectangle{
                width: 1600
                height: 1
                anchors.top: parent.top
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }

            Rectangle{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 100
                radius: 30
                height: 100
                color: "gray"

                Rectangle{
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                    width: 30
                    height: parent.height
                    color: "white"
                }

                Text{
                    anchors.right: parent.right
                    anchors.rightMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    font.pixelSize: 20
                    font.bold: true
                    color: "white"
                    text: qsTr("角码")
                }

            }


            Row{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 130
                spacing: 30

                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("X1标定")
                }
                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Y1标定")
                }
                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Z1标定")
                }
            }


            Rectangle{
                width: 1600
                height: 1
                anchors.bottom: parent.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }
        }
        Item{
            width: 1700
            height: 120

            Rectangle{
                width: 1600
                height: 1
                anchors.top: parent.top
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }

            Rectangle{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 100
                radius: 30
                height: 100
                color: "gray"

                Rectangle{
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                    width: 30
                    height: parent.height
                    color: "white"
                }

                Text{
                    anchors.right: parent.right
                    anchors.rightMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    font.pixelSize: 20
                    font.bold: true
                    color: "white"
                    text: qsTr("锯切")
                }

            }

            Row{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 130
                spacing: 30

                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("X1标定")
                }
                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Z-左标定")
                }
                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("Z-右标定")
                }
            }


            Rectangle{
                width: 1600
                height: 1
                anchors.bottom: parent.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }
        }
        Item{
            width: 1700
            height: 120

            Rectangle{
                width: 1600
                height: 1
                anchors.top: parent.top
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }

            Rectangle{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 100
                radius: 30
                height: 100
                color: "gray"

                Rectangle{
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                    width: 30
                    height: parent.height
                    color: "white"
                }

                Text{
                    anchors.right: parent.right
                    anchors.rightMargin: 20
                    anchors.verticalCenter: parent.verticalCenter
                    font.pixelSize: 20
                    font.bold: true
                    color: "white"
                    text: qsTr("下料")
                }

            }


            Row{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 130
                spacing: 30

                A_NumberInput{
                    keyboard: manualCalibrationKeyboard
                }
                A_Button{
                    buttonWidth: 120
                    buttonHeight: 40
                    contentText_Data: qsTr("X标定")
                }
            }

            Rectangle{
                width: 1600
                height: 2
                anchors.bottom: parent.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                color: "black"
            }
        }
    }


    Row{
        anchors.horizontalCenter: manualCalibrationBack.horizontalCenter
        anchors.top: manualCalibrationBack.top
        anchors.topMargin: 610
        spacing: 30

        A_Button{
            buttonWidth: 120
            buttonHeight: 40
            contentText_Data: qsTr("机械手X+")
        }
        A_Button{
            buttonWidth: 120
            buttonHeight: 40
            contentText_Data: qsTr("机械手X-")
        }

        Text{
            width: 150
            height: 40
            // verticalAlignment: Text.verticalAlignment
            horizontalAlignment: Text.horizontalAlignment
            font.pixelSize: 20
            font.bold: true
            text: qsTr("寸动距离")
        }

        A_NumberInput{
            keyboard: manualCalibrationKeyboard
        }

    }


}
